/*    */ package com.zimbra.cs.util.yauth;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum ErrorCode
/*    */ {
/* 26 */   INVALID_PASSWORD("InvalidPassword", "Invalid Password"), 
/* 27 */   UNDER_AGE_USER("UnderAgeUser", "User is under age"), 
/* 28 */   CAPTCHA_REQUIRED("CaptchaRequired", "Captcha is required"), 
/* 29 */   USER_MUST_LOGIN("UserMustLogin", "Browser login required"), 
/* 30 */   LOGIN_DOESNT_EXIST("LoginDoesntExist", "User login does not exist"), 
/* 31 */   LOCKED_USER("LockedUser", "User is in locked state"), 
/* 32 */   TEMP_ERROR("TempError", "Temporary Error"), 
/* 33 */   HTTPS_REQUIRED("HttpsRequired", "This webservice call requires HTTPS"), 
/* 34 */   TOKEN_REQUIRED("TokenRequired", "Invalid (missing) token"), 
/* 35 */   INVALID_APP_ID("InvalidAppId", "Invalid (missing) appid"), 
/* 36 */   INVALID_TOKEN("InvalidToken", "Invalid (missing) token"), 
/* 37 */   INVALID_LOGIN_OR_PASSWORD("InvalidLoginOrPassword", "Invalid (missing) login or password"), 
/* 38 */   INVALID_CAPTCHA_WORD_LEN("InvalidCaptchaWordLen", "Invalid (missing) captchaword"), 
/* 39 */   INVALID_CAPTCHA_DATA("InvalidCaptchaData", "Invalid (missing) captchadata"), 
/* 40 */   INVALID_CAPTCHA("InvalidCaptcha", "Validation of captcha failed"), 
/* 41 */   DEACTIVATED_APP_ID("DeactivatedAppId", "Application id disabled"), 
/* 42 */   GENERIC_ERROR("GenericError", "Unspecified error");
/*    */   
/*    */   private static final Map<String, ErrorCode> byName;
/*    */   
/*    */   static {
/* 47 */     byName = new HashMap();
/* 48 */     for (ErrorCode error : values()) {
/* 49 */       byName.put(error.name, error);
/*    */     }
/*    */   }
/*    */   
/*    */   public static ErrorCode get(String name) {
/* 54 */     return (ErrorCode)byName.get(name);
/*    */   }
/*    */   
/*    */   private final String name;
/*    */   private final String description;
/*    */   private ErrorCode(String name, String description)
/*    */   {
/* 61 */     this.name = name;
/* 62 */     this.description = description;
/*    */   }
/*    */   
/* 65 */   public String getName() { return this.name; }
/* 66 */   public String getDescription() { return this.description; }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/util/yauth/ErrorCode.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */